package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName:
 * @Description:
 * @Author: zengfanzhen
 * @Date: 2024/4/11 20:06:22
 */
@Entity
@Table(name = "data3")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Data3 implements Serializable {
    @Id
    @NotNull(message = "编号不能为空")
    @ApiModelProperty(value = "编号 对应id")
    private String id;

    @ApiModelProperty(value = "车牌 plate")
    private String plate;

    @NotNull(message = "日期时间不能为空")
    @ApiModelProperty(value = "日期时间 Time")
    @JsonFormat(pattern = "yyyy-HH-dd HH:mm:ss",timezone = "GMT+8")
    private Date Time;
}
